#include "list.h"
#include <iostream>
using namespace std;
int main() {
	List La,Lb,Lc;
	int b[7]={2,6,8,9,11,15,20};
	La.InitList();
	Lb.InitList();
	for(int i=1;i<=5;++i) {
		La.ListInsert(i,i);
		Lb.ListInsert(i,2*i);
	}

	cout << "La = ";
	La.ListDisp();
	cout << "Lb = ";
	Lb.ListDisp();

	La.Union(La,Lb);
	cout << "New La = ";
	La.ListDisp();

	Lb.ClearList();
	Lb.InitList();
	for(int j=1;j<=7;++j) {
		Lb.ListInsert(j,b[j-1]);	
	}
	cout << "Lb = ";
	Lb.ListDisp();
	
	Lc.InitList();
	Lc.MergeList(La,Lb,Lc);
	cout << "Lc = ";
	Lc.ListDisp();
	return 0;
}
